<#include "../header.ftl" />
<#if news?exists>
	<@head title="${news.title} - ${sitename}" keyword=news_keyword description=news_description />
<#else>
	<@head title="404 - ${sitename}"/>
</#if>
	<@nav current="首页"/>
	<div class="container">
		<div class="grid grid-15">
			<div class="box">
			   	<div class="box-body img-range">
			   		<#if news?exists>
				   		<div><h2>${news.title}</h2></div>
				   		<small>由 <a href="<@userSpaceUrl name="${news.author.name}" />" target="_blank">${news.author.alias}</a> 发表于${news.createTime?string("yyyy-MM-dd hh:mm:ss")}  点击量：<@newsViews id=news.id /></small>
				   		<hr />
				   		<div class="typo-p">
				   			${news.content}
				   		</div>
				   		<hr />
				   		<div class="typo-p">
				   			<div id="mlog-comment-form"></div>
				   			<div id="mlog-comment-list"></div>
				   			<link type="text/css" href="${base}/style/comment.css" rel="stylesheet">
				   			<script type="text/javascript" src="${template_url}/plugin/comment/mlog.comment.js"></script>
				   			<script type="text/javascript">
				   				MCMT.conf.fkey = '${news.id}';
				   				MCMT.conf.ftype = 'NEWS';
				   				MCMT.conf.maxlength = 300;
				   				MCMT.conf.toUser = '${news.author.id}';
				   				MCMT.UI();
				   			</script>
				   		</div>
			   		<#else>
				   		<div class="alert alert-error">
							<h3 class="alert-header"><i class="icon-cancel-circle">&nbsp;</i>404</h3>
							未找到您要查看的资讯。
						</div>
			   		</#if>
			   	</div>
			</div>
		</div>
		<div class="grid grid-5 last">
			<div class="box">
				<div class="box-title">最新资讯</div>
			   	<div class="box-body">
			   		<div class="typo-p">
			   			<@m.widget path="/widget/news/recent" idle=600/>
			   		</div>
			   	</div>
			</div>
		</div>
	</div>
<#include "../footer.ftl" />